package com.z.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.z.common.web.base.BaseEntity;
import lombok.Data;

/**
 * 角色资源授权实体
 *
 * @author z
 * @date 2023-03-02
 */
@Data
@TableName("t_role_permission")
public class RolePermission extends BaseEntity{

    /** 主键 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 资源 */
    private String permissionId;

    /** 角色 */
    private String roleId;


    public RolePermission(String roleId, String permissionId) {
        this.roleId = roleId;
        this.permissionId = permissionId;
    }
}
